home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / 5_in_row.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2010-04-12  |  807 b   |  32 lines

  1. xMax = 6;
  2. yMax = 6;
  3. maxTileNr = 8;
  4. tilesToRow = 5;
  5. rndLoops = 10;
  6. tilesMax = xMax * yMax;
  7. startPosMax = 2 * xMax + 2 * yMax;
  8. rowsKilledBonus = 0;
  9. rowBonus = 150;
  10. minRowsKilled = 15;
  11. rowBonusFactor = rowBonus * minRowsKilled;
  12. criticalAmount = Math.round(tilesMax * 0.66);
  13. aBoard = new Array(tilesMax);
  14. aStartPos = new Array(startPosMax);
  15. aStartTilePos = [100,38,148,38,196,38,244,38,292,38,340,38,400,88,400,130,400,172,400,214,400,256,400,298,340,348,292,348,244,348,196,348,148,348,100,348,40,298,40,256,40,214,40,172,40,130,40,88];
  16. aLevelTimes = [0,25,21,18,15,12,10,8,7,6,5,5,5,4,4,4];
  17. initRndArray(rndLoops);
  18. clearBoard();
  19. time = 0;
  20. level = 0;
  21. preLevel = 1;
  22. score = 0;
  23. if(threshold == undefined)
  24. {
  25.    threshold = 1000;
  26. }
  27. else
  28. {
  29.    threshold = Number(threshold);
  30. }
  31. stop();
  32.